﻿using Dimebrain.TweetSharp.Core.Web;

namespace Dimebrain.TweetSharp.Fluent
{
    partial class Extensions
    {
        /// <summary>
        /// Uses the HTTP POST verb to perform the action
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <returns>The instance</returns>
        public static ITwitterSavedSearchesDestroy UsingHttpPost(this ITwitterSavedSearchesDestroy instance)
        {
            instance.Root.Method = WebMethod.Post;
            return instance;
        }

        /// <summary>
        /// Uses the HTTP DELETE verb to perform the action
        /// </summary>
        /// <param name="instance">The instance.</param>
        /// <returns>The instance</returns>
        public static ITwitterSavedSearchesDestroy UsingHttpDelete(this ITwitterSavedSearchesDestroy instance)
        {
            instance.Root.Method = WebMethod.Delete;
            return instance;
        }
    }
}
